package com.zhouqinuan.spring.cloud.develop.framework.rabbitmq.handler.impl;

import com.zhouqinuan.spring.cloud.develop.framework.rabbitmq.handler.ListenerErrorHandler;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class DefaultListenerErrorHandler implements ListenerErrorHandler {

    @Override
    public void handleError(Throwable t) {
        if (log.isErrorEnabled()) {
            log.error("Unexpected error occurred in rabbitmq listener, {}", t);
        }
    }

}
